<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.console.servlets.user.ResetPassword"%>
<%@page import="com.blockchain.common.enums.CertificateType"%>
<%@page import="com.blockchain.console.service.user.entity.User"%>
<%@page import="com.blockchain.common.enums.IsPass"%>
<%@page import="com.blockchain.console.servlets.user.UserList"%>
<%@page import="com.blockchain.console.servlets.user.UpdateUser"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<body>
	<%
	CURRENT_CATEGORY="HHGL";
	CURRENT_SUB_CATEGORY="YHLB";
	User user=(User)request.getAttribute("user");
	%>
	<%@include file="/WEB-INF/include/header.jsp"%>
<div class="w_main">
<div class="main clearfix">
  
    <div class="wrap">
        <div class="r_main">
            <div class="home_main">
            	<div class="box box1">
                	<div class="atil">
                    	<h3>修改用户</h3>
                    </div>
                    <div style="color: red;"><%StringHelper.filterHTML(out, controller.getPrompt(request, response, PromptLevel.ERROR));%></div>
                    <div class="con">
                    <form action="<%=controller.getURI(request, UpdateUser.class)%>" method="post" class="form1">
                    <div class="info"><input name="userid" type="hidden" value="<%=user.userId%>"/></div>
                    <ul class="cell noborder no_wi">
                    <li>
                        <div class="til"><span class="red">*</span> 用户Id：</div>
                        <div class="info"><%=user.userId %></div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span> 姓   名：</div>
                        <div class="info">
                         <div class="info">
                        <input name="name" type="text" class="text yhgl_ser required" value="<%StringHelper.filterHTML(out, user.name);%>" />
                        	<p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span> 证件号：</div>
                        <div class="info">
                        <input name="zjh" type="text" class="text yhgl_ser required" value="<%StringHelper.filterHTML(out, user.zjhm);%>" />
                        	<p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span> 邮箱：</div>
                        <div class="info">
                         	<input name="sjh" type="text" class="text yhgl_ser required" value="<%StringHelper.filterHTML(out, user.iphone);%>" />
                        	<p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span> 转币限额：</div>
                        <div class="info">
                         	<input name="zbxe" type="text" class="text yhgl_ser required isin" value="<%=user.zbxe%>" />
                        	<p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                   <li>
                        <div class="til"> 证件类型：</div>
                        <div class="info">
                        	<select name="certificateType" class="yhgl_sel">
	                            <%if(user.certificateType!=null){for (CertificateType is : CertificateType.values()) {%>
								<option value="<%=is.name()%>" <%if (is.name().equals(user.certificateType.name())) {%> selected="selected" <%}%>><%=is.getName()%></option>
								<%}}%>
                            </select>
                        	<p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                   
                    <li>
                        <div class="til"> 特殊账号：</div>
                        <div class="info">
                        	<select name="tszh" class="yhgl_sel">
	                            <%for (IsPass is : IsPass.values()) {if(user.tszh!=null){%>
								<option value="<%=is.name()%>" <%if (is.name().equals(user.tszh.name())) {%> selected="selected" <%}%>><%=is.getName()%></option>
								<%}}%>
                            </select>
                        	<p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    </ul>
                    <div class="tc w420">
                    	<input type="submit" class="btn4 mr30 sumbitForme" value="确认" fromname="form1" />
                    	<input type="button" class="btn4 mr30" onclick="window.location.href='<%=controller.getURI(request, UserList.class)%>'" value="返回" />
                    	<input type="button" class="btn4" onclick="resetPassword()" value="重置密码" />
                    </div>
                    	
                    <div class="clear"></div>
                    </form>                  
                    </div>
                </div>
            	<div class="mb15"></div>
                <div class="box2 clearfix"></div>
            </div>
        </div>   
    </div>
    
					<div id="cz" style="display: none">
					<div class="popup_bg"></div>
						<div class="w440 thickbox thickpos" style="margin:-80px 0 0 -220px;" id="showDiv">
					      <div class="info clearfix">
					      	  <div class="clear"></div>
						      <form action="<%=controller.getURI(request, ResetPassword.class)%>" method="post" class="form2" id="form2">
						      <input name="id" type="hidden" id="id">
						      <input name="userid" type="hidden" id="userid">
								<div class="clear"></div>
						        <div class="clearfix" style="margin-left: 40px;">
								<div class="table">
										<span>管理员登录密码:</span>
										<input type="password" name="loginPwd" style="width: 200px;" 
												class="text yhgl_ser required minf-size-0.01 maxf-size-5000000"/>
										<div class="clear"></div>
										
										<span>重置用户密码:</span>
										<input type="password" name="userloginPwd" style="width: 200px;" 
												class="text yhgl_ser required minf-size-0.01 maxf-size-5000000"/>
										<div class="clear"></div>
										
										<span>再次输入密码:</span>
										<input type="password" style="width: 200px;" 
												class="text yhgl_ser required minf-size-0.01 maxf-size-5000000"/>
										<div class="clear"></div>
										
								</div>
								<div class="clear"></div>
								</div>		
									<div class="tc w220 pt20"">
										<input type="submit"  style="cursor: pointer;" value="提交"  class="btn3 mr30 sumbitForme" fromname="form2" /> 
										<input type="button"  name="button2" onclick="$('#cz').hide()" value="取消" class="btn5" />
									</div>
								</form>
					      </div>
						</div>
					</div>
	<%@include file="/WEB-INF/include/left.jsp"%>
		<script type="text/javascript">
		function resetPassword(){
			$("#cz").show();
		}
		</script>
</div>
</div>
	<%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%>
	<script type="text/javascript" src="<%=controller.getStaticPath(request)%>/js/validation.js">

	</script>
</body>
</html>